package cn.wolfcode.car.business.service;


import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.business.query.AppointmentQuery;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 养修服务单项接口
 */
public interface IAppointmentService extends IService<Appointment>{

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<Appointment> query(AppointmentQuery qo);

    void updateAppointment(Appointment appointment);

    /**
     * 取消
     * @param id
     */
    void cancel(Long id);

    /**
     * 到店
     * @param id
     */
    void arrival(Long id);

    /**
     * 结算单生成
     * @param appointmentId
     * @return
     */
    Statement generateStatement(Long appointmentId);
}
